home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Prg / STR2BMP.ZIP / README.DOC < prev    next >
Text File  |  1997-09-14  |  3KB  |  52 lines

  1. README FILE
  2. -----------
  3.  
  4.  
  5. MODIFICATIONS FOR STR2BMP.DLL v 1.1 (09-20-93)
  6. ----------------------------------------------
  7. The following changes have been made to this file:
  8.   1. Changes were made to work with VB 3.0. Mostly this required changes
  9.         in the Demo VB program. When my DLL returns a LONG (as in size of
  10.         bitmap), the variable in VB must be long too. An integer causes call
  11.     kinds of weird errors.
  12.   2. Added runtime error messages for VB. When "making" the DLL, you will
  13.         need to include VBAPI.LIB which is found in the \VB\CDK directory.
  14.         Also note that with the Borland C++ 3.1 compiler, you need to turn
  15.         of case-sensitive linking in the link settings for VBAPI.LIB to link
  16.         properly.
  17.   3. Allow larger bitmaps. Up to 65000 bytes (the limit of VB strings).
  18.   4. Easier syntax for using string functions. For example, you can now
  19.         do this: 
  20.         A$=StringToBitmap( Picture1.hdc, Picture1.Image).
  21.     There is no need to set the size of A$ ahead of time, etc.
  22.   
  23.  
  24. STR2BMP.DLL v 1.0 (6-13-93)
  25. ---------------------------
  26.    STR2BMP.DLL contains a DLL called STR2BMP.DLL for converting VB bitmaps
  27. into VB strings and vice versa. Also included are functions for inverting,
  28. ANDing, ORing, and comparing bitmaps that have been converted to strings.
  29.    The source code for STR2BMP.DLL is included and may be modified as needed.
  30.  
  31. I. Instructions for demo.
  32.     A. Install all the files from STR2BMP.ZIP into a directory called C:\STR2BMP.
  33.     B. From VB/WIN, load the C:\STR2BMP\TEST.MAK program and execute it.
  34.     C. The code demonstrates converting bitmaps to strings, performing operations
  35.          on the strings, and converting the strings back into bitmaps.
  36.  
  37. II. Technical information.
  38.     A. The source code included was compiled using Borland C++ 3.1.
  39.     B. The maximum size bitmap that can be converted into a string using this DLL
  40.          is 32000 pixels.
  41.     C. To AND/OR two bitmaps, the bitmaps must be the same size.
  42.     D. Always remember to create a string large enough to hold the entire bitmap
  43.          before calling DLL functions that expect strings containing bitmaps. Otherwise
  44.          you may get a GPF. See sample code in TEST.FRM. The current DLL does
  45.          not check the size of the string before trying to fill it!!! An error will
  46.          be caused if you try to stuff too much bitmap into too small a string!!!
  47.     
  48. III. Questions or suggestions.
  49.     Please contact Jorge Monasterio at Compuserve 72147,2674 if you have
  50.     any questions or suggestions about this DLL.
  51.  
  52.